<?php
/**
 *
 *
 * @author Zeon <scplay@gmail.com>
 * @date 2018/12/11 14:03
 * @copyright PanxSoft Inc.
 */

namespace Tests\Misc\Service;


use App\Services\Kdniao\Kdniao;
use Tests\TestCase;

class TestKuaiDiNiao extends TestCase
{
    /**
     * @throws \Exception
     */
    public function test_get_express_trace()
    {
        $tracer = new Kdniao();

        $trace = $tracer->queryTraces('ZTO', '701064283423');

        $this->assertTrue($trace['Success']);
    }

    /**
     * @throws \Exception
     */
    public function test_subscribe_trace_api()
    {
        $tracer = (new Kdniao);

        $trace = $tracer->subscribeTraces('ZTO', '701064283423', rand(1, 100));

        $this->assertTrue($trace['Success']);
    }
}